import request from '@/utils/request.js'
// 获取所有频道请求
export function getAllChannelApi () {
  return request({ url: 'channels' })
}
// 获取用户的频道请求
export function getUserChannelApi () {
  return request({ url: 'user/channels' })
}
// 根据频道id删除用户频道
export function delUserChannelApi (userID) {
  return request.delete(`user/channels/${userID}`)
}
// 根据数组添加用户频道
export function addUserChannelApi (userArray) {
  return request.put('user/channels', {
    channels: userArray
  })
}
